package is.ru.honn.rupin.data;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * Created by Sigrún Inga Kristinsdóttir and Susanne Götz
 * Date: 18.11.2012
 * Time: 12:58
 * copyright (c) sigruninga and Susanne
 *
 * @author Sigrún Inga kristindóttir and Susanne
 * @version 101.1
 */

/**
 *  Row Mapper fyrir users sem innskráður notandi fylgir
 *  er notaður þegar við sækjum followers úr ru_followers töflu
 *  með UserDataGateway
 */
public class FollowersRowMapper implements RowMapper {
    @Override
    public String mapRow(ResultSet resultSet, int i) throws SQLException {
        String follower = new String(resultSet.getString(2));// follower
        return follower;
    }
}